package 建造者模式;

/**
 * 指挥者
 */
public class Director {

    private Builder builder;

    public Director(Builder builder) {
        this.builder = builder;
    }

    public void createBuilder(String head, String body, String tail) {
        builder.writeBody(head);
        builder.writeBody(body);
        builder.writeTail(tail);
        builder.outFile();
    }

}
